/*
 * Created by: vadikv
 * Created: Tuesday, March 04, 2008
 */

using Microsoft.VisualStudio.TestTools.UnitTesting;
using OneDayModel.Tests.Fits.UIUsers;
using TestUtils;

namespace OneDayModel.Tests.Fits.Runners
{
    public abstract class BaseRunner : UnitFitRunner
    {
        protected const string baseDirectory = @"..\..\..\OneDayModel.Tests\Fits\";

        protected override string OutFolder
        {
            get { return baseDirectory + @"TestResults\"; }
        }

        protected override string InFolder
        {
            get { return baseDirectory;}
        }

//        [TestMethod]
//        public void RunIt()
//        {
//            TestRun();
//        }
    }

    [TestClass]
    public class NewUserProfileRunner : BaseRunner
    {
        public NewUserProfileRunner()
        {
            ContextManager.TestContext[typeof (UsersFactory).ToString()] = new UsersFactory();
        }

        protected override string TestName
        {
            get { return "NewUserProfile.htm"; }
        }

        [TestMethod]
        public void NewUserProfileTest()
        {
            TestRun();
        }
    }
    
    [TestClass]
    public class NewUserUniqAliasRunner : BaseRunner
    {
        public NewUserUniqAliasRunner()
        {
            ContextManager.TestContext[typeof (UsersFactory).ToString()] = new UsersFactory();
        }

        protected override string TestName
        {
            get { return "NewUserUniqAlias.htm"; }
        }

        [TestMethod]
        public void NewUserUniqAliasTest()
        {
            TestRun();
        }

    }

    [TestClass]
    public class NewUserEMailAlreadyExistRunner : BaseRunner
    {
        public NewUserEMailAlreadyExistRunner()
        {
            ContextManager.TestContext[typeof (UsersFactory).ToString()] = new UsersFactory();
        }

        protected override string TestName
        {
            get { return "NewUserEMailAlreadyExist.htm"; }
        }

        [TestMethod]
        public void NewUserEMailAlreadyExistTest()
        {
            TestRun();
        }
    }
}